package cn.hdu.liang.core.dao.product;

import java.util.List;

import cn.hdu.liang.core.bean.product.Img;
import cn.hdu.liang.core.query.product.ImgQuery;

public interface ImgDao {

    //添加
    public Integer addImg(Img img);

    //根据主键查找
    public Img getImgByKey(Integer id);

    //根据主键批量查找
    public List<Img> getImgsByKeys(List<Integer> idList);

    //根据主键删除
    public Integer deleteByKey(Integer id);

    //根据主键批量删除
    public Integer deleteByKeys(List<Integer> idList);

    //根据主键更新
    public Integer updateImgByKey(Img img);

    //分页查询
    public List<Img> getImgListWithPage(ImgQuery imgQuery);

    //集合查询
    public List<Img> getImgList(ImgQuery imgQuery);

    //总条数
    public int getImgListCount(ImgQuery imgQuery);
}
